package com.tn.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 异常基类
 *
 * @program: tn_aucy_java
 * @author: yangjiayao
 * @create: 2022/3/2
 */
@Getter
@Setter
public class BaseException extends RuntimeException {
    /**
     * 错误码
     */
    private int code;

    /**
     * 错误描述
     */
    private String message;

    /**
     * 构造方法
     */
    public BaseException(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }
}
